<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>varn</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : April 1993</div>
    <p>
      <b>varn</b> -  symbolic variable of a polynomial</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>[symb]=varn(p)  </tt>
      </dd>
      <dd>
        <tt>[pm]=varn(x,var)  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>p</b>
        </tt>: polynomial (or matrix polynomial)</li>
      <li>
        <tt>
          <b>symb</b>
        </tt>: character string</li>
      <li>
        <tt>
          <b>x</b>
        </tt>: polynomial or polynomial matrix</li>
      <li>
        <tt>
          <b>var</b>
        </tt>: symbolic variable (character string)</li>
      <li>
        <tt>
          <b>pm</b>
        </tt>: matrix or polynomial matrix</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
      <tt>
        <b>symb=varn(p)</b>
      </tt> returns in <tt>
        <b>symb</b>
      </tt> the symbolic variable of the polynomial <tt>
        <b>p</b>
      </tt>
    (i.e. <tt>
        <b>varn(poly(0,'x'))</b>
      </tt> is <tt>
        <b>'x'</b>
      </tt>).</p>
    <p>
      <tt>
        <b>varn(x,'s')</b>
      </tt> returns a polynomial matrix with same coefficients
    as <tt>
        <b>x</b>
      </tt> but with <tt>
        <b>'s'</b>
      </tt> as symbolic variable (change of variable name).</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

// 
s=poly(0,'s');p=[s^2+1,s];
varn(p)
varn(p,'x')
 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="../polynomials/horner.htm">
        <tt>
          <b>horner</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="poly.htm">
        <tt>
          <b>poly</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
